home *** CD-ROM | disk | FTP | other *** search
- #include <:Mac #includes:asm.h>
- #include <:Mac #includes:Color.h>
-
- #include "Commando:Programming:LightspeedC™:Vision Lab:shared.h"
-
- int main(AppDataPtr)
- SharePtr AppDataPtr;
- {
- int i, CL;
- CTabPtr clutPtr;
- unsigned long rgbValue;
- clutPtr = *(AppDataPtr->pixMapPtr->pmTable);
- CL = clutPtr->ctSize+1;
- for (i = 0; i<CL; i++) {
- rgbValue = clutPtr->ctTable[i].rgb.red;
- rgbValue = ((unsigned long) 0xFFFF) - rgbValue;
- clutPtr->ctTable[i].rgb.red = rgbValue;
- rgbValue = clutPtr->ctTable[i].rgb.green;
- rgbValue = ((unsigned long) 0xFFFF) - rgbValue;
- clutPtr->ctTable[i].rgb.green = rgbValue;
- rgbValue = clutPtr->ctTable[i].rgb.blue;
- rgbValue = ((unsigned long) 0xFFFF) - rgbValue;
- clutPtr->ctTable[i].rgb.blue = rgbValue;
- }
- AppDataPtr->ClutChanged = TRUE;
- return(noErr);
- }
-